package com.jvyou.app.ds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jvyou.app.ds.domain.entity.CourseSubject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 考试科目表(CourseSubject)表数据库访问层
 *
 * @author 橘柚
 * @since 2025-04-18 14:48:56
 */
public interface CourseSubjectMapper extends BaseMapper<CourseSubject> {

    @Select("select * from ds_course_subject where subject_name = #{subject} and is_deleted='0' limit 1 ")
    CourseSubject getBySubject(@Param("subject") String subject);
}
